from django.contrib import admin
from import_export.admin import ImportExportModelAdmin

from lab.user.models import ExtendedUser

# Register your models here.
admin.site.site_header = '中南大学实验室管理后台'  # 设置header
admin.site.site_title = '中南大学实验室管理后台'  # 设置title
admin.site.index_title = '中南大学实验室管理后台'


@admin.register(ExtendedUser)
class ExtendedUserAdmin(ImportExportModelAdmin):
    list_display = [field.name for field in ExtendedUser._meta.fields]
